//
//  UIButton+AdjustTextAnsImage.h
//  homework
//
//  Created by gaofeng on 15/2/28.
//  Copyright (c) 2015年 Baidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ButtonEdgeInsetsStyle) {
    ButtonEdgeInsetsStyleImageLeft,
    ButtonEdgeInsetsStyleImageRight,
    ButtonEdgeInsetsStyleImageTop,
    ButtonEdgeInsetsStyleImageBottom
};

@interface UIButton (AdjustTextAnsImage)

- (void)setImageAndTextToCenterWithSpace:(CGFloat)space;
- (void)setImageAndTextToUpDownWithSpace:(CGFloat)space;

- (void)layoutButtonWithEdgeInsetsStyle:(ButtonEdgeInsetsStyle)style imageTitlespace:(CGFloat)space;

@end
